package com.citybox.infrastructure.user.persistence.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.citybox.domain.user.UserDo;
import com.citybox.infrastructure.user.dataobject.User;

/**
 * @author zhao.x
 */
public interface UserService extends IService<User> {


    UserDo findByOpenId(String openid);

    //查询用户如果为空新增并返回新增用户
    UserDo findOrCreateUser(String openId, String unionId);

    /**
     * id查询用户信息
     * @param userId
     * @return
     */
    UserDo findById(String userId);


}
